package demo09.TemplateMethod;

public class Coffee {

	void prepareRecipe() {//泡咖啡的方法
		boilWater();
		brewCoffeeGrinds();
		pourInCup();
		addSugarAndMilk();
	}
 
	public void boilWater() {
		System.out.println("把水煮到沸腾");//重复的
	}
 
	public void brewCoffeeGrinds() {
		System.out.println("咖啡滴过滤器");
	}
 
	public void pourInCup() {
		System.out.println("倒入杯子");//重复的
	}
 
	public void addSugarAndMilk() {
		System.out.println("加入牛奶和糖");
	}
}
